package com.ruoyi.pump.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pump.mapper.TPumpPointMapper;
import com.ruoyi.pump.domain.TPumpPoint;
import com.ruoyi.pump.service.ITPumpPointService;

/**
 * 泵组节点Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-18
 */
@Service
public class TPumpPointServiceImpl implements ITPumpPointService 
{
    @Autowired
    private TPumpPointMapper tPumpPointMapper;

    /**
     * 查询泵组节点
     * 
     * @param id 泵组节点主键
     * @return 泵组节点
     */
    @Override
    public TPumpPoint selectTPumpPointById(Long id)
    {
        return tPumpPointMapper.selectTPumpPointById(id);
    }

    /**
     * 查询泵组节点列表
     * 
     * @param tPumpPoint 泵组节点
     * @return 泵组节点
     */
    @Override
    public List<TPumpPoint> selectTPumpPointList(TPumpPoint tPumpPoint)
    {
        return tPumpPointMapper.selectTPumpPointList(tPumpPoint);
    }

    /**
     * 新增泵组节点
     * 
     * @param tPumpPoint 泵组节点
     * @return 结果
     */
    @Override
    public int insertTPumpPoint(TPumpPoint tPumpPoint)
    {
        return tPumpPointMapper.insertTPumpPoint(tPumpPoint);
    }

    /**
     * 修改泵组节点
     * 
     * @param tPumpPoint 泵组节点
     * @return 结果
     */
    @Override
    public int updateTPumpPoint(TPumpPoint tPumpPoint)
    {
        return tPumpPointMapper.updateTPumpPoint(tPumpPoint);
    }

    /**
     * 批量删除泵组节点
     * 
     * @param ids 需要删除的泵组节点主键
     * @return 结果
     */
    @Override
    public int deleteTPumpPointByIds(Long[] ids)
    {
        return tPumpPointMapper.deleteTPumpPointByIds(ids);
    }

    /**
     * 删除泵组节点信息
     * 
     * @param id 泵组节点主键
     * @return 结果
     */
    @Override
    public int deleteTPumpPointById(Long id)
    {
        return tPumpPointMapper.deleteTPumpPointById(id);
    }
}
